package Homework_java02;
import java.util.Random;
import java.util.HashSet;
public class RandomInteher {
	static Random r=new Random();
	static HashSet<Integer> set=new HashSet<>();
	public static void main(String[] args){
		int[] num=new int[6];
		for(int i=0;i<num.length;i++){
			int x=r.nextInt(33)+1;
			if(set.add(x)){
				num[i]=x;
			}
		}
		for(int i=0;i<num.length;i++){
			System.out.print(num[i]+" ");
		}
	}

}
